
<form role="form" class="epii" method="post" data-form="1" action="{url bed add_edit }">

    <div class="form-group">
        <label>名称：</label>
        <input type="text" class="form-control" name="r[name]" value="{? $info.name}" required
               placeholder="请输入病床名称获编号">
    </div>
    {if empty($room_id)}
    <div class="form-group">
        <label>所属病房：</label>
        <select class="selectpicker" name="r[room_id]" id="" required>
            {:options,$rooms,$info.room_id}
        </select>
    </div>
    {else}
    <input type="hidden" name="room_id" value="{$room_id?0}">
    {/if}

    <div class="form-group">
        <label>是否空床：</label>
        <select class="selectpicker" name="r[is_empty]" id="">
            {:options,$is_empty,$info.is_empty}
        </select>
    </div>
    <div class="form-group">
        <label>状态：</label>
        <select class="selectpicker" name="r[status]" id="">
            {:options,$status,$info.status?1}
        </select>
    </div>
    <input type="hidden" name="id" value="{$id?0}">
    <div class="form-footer">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
</form>
